import { createSlice } from '@reduxjs/toolkit'

export const cklist = createSlice({
  name: 'cklist',
  initialState: {
    value: []
  },
  reducers: {
      setvlaue(state,{payload}){
        state.value=payload
      }
  }
})
// 每个 case reducer 函数会生成对应的 Action creators
export const { setvlaue } = cklist.actions

export default cklist.reducer